package day_07.oop;

/**
 * @ClassName Box
 * @Description TODO
 * @Author hp
 * @Date 2021/6/10 18:23
 * @Version 1.0
 **/
public class Box {
    private double longth;
    private double width;
    private double heigth;

    public double getLongth() {
        return longth;
    }

    public void setLongth(double longth) {
        this.longth = longth;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHeigth() {
        return heigth;
    }

    public void setHeigth(double heigth) {
        this.heigth = heigth;
    }

    public Box(double longth, double width, double heigth) {
        this.longth = longth;
        this.width = width;
        this.heigth = heigth;
    }

    public Box() {
    }

    public double volume(){
        return longth*width*heigth;
    }
}
